package com.demo.zhihu.model;

import java.util.Date;

import org.apache.ibatis.type.Alias;

@Alias("Comment")
public class Comment {
	private int id;
	private int type;
	private int target;
	private Date date;
	private int commenter;
	private String content;
	
	public static final int ME = 1;
	
	public Comment() {}
	
	public Comment(int type, int target, int commenter, String content) {
		this.setType(type);
		this.setTarget(target);
		this.setDate(new Date());
		this.setContent(content);
		this.setCommenter(commenter);
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getTarget() {
		return target;
	}

	public void setTarget(int target) {
		this.target = target;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getCommenter() {
		return commenter;
	}

	public void setCommenter(int commenter) {
		this.commenter = commenter;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	
}
